package com.emns.web.mobile;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.emns.service.mobile.LanmuMobileService;

@Controller
@RequestMapping(value = "/lanmuMobile")
public class LanmuMobileController {

	@Autowired
	LanmuMobileService lms;

	// 查找所有悦读数据
	@RequestMapping(value = "/query")
	public void queryPage(Model model) {
		Map<String, Object> hm = lms.queryAll();
		model.addAttribute("errorCode", "0");
		model.addAttribute("errorMessage", "查询成功");
		model.addAttribute("info", hm);
	}
}
